package com.cci.kangdao.fieldService.dao;

import com.cci.kangdao.fieldService.model.FieldServiceWorkOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FieldServiceWorkOrderDao {
    int deleteByPrimaryKey(Long id);

    int insert(FieldServiceWorkOrder record);

    int insertSelective(FieldServiceWorkOrder record);

    FieldServiceWorkOrder selectByPrimaryKey(Long id);

    FieldServiceWorkOrder selectByChannelAndCrmNo(@Param("channel") Long channel, @Param("crmOrderNo") String crmNo);

    FieldServiceWorkOrder selectByReportId(Long reportId);

    List<FieldServiceWorkOrder> selectListByEngineerId(@Param("channel") Long channel,@Param("engineerId") Long engineerId);

    List<FieldServiceWorkOrder> selectOpenListByEngineerId(@Param("channel") Long channel,@Param("engineerId") Long engineerId);

    int updateByPrimaryKeySelective(FieldServiceWorkOrder record);

    int updateByPrimaryKey(FieldServiceWorkOrder record);
}